{% load i18n %}
<table id="{{reply.html_id}}" class="frm_reply">
    {% if moderator %}
    <caption title="{{reply.short}}" class="spaced">
        <div class="span-1 last" style="width: 20%; text-align: right;">
            <b>{% trans "Moderator actions: " %}</b>
            <a class="edit_topic"
                href=''
                title='{%trans "Edit topic" %}'>E</a>
            <a class="del_topic"
                href=''
                onclick="javascript: return confirm('{%trans "Are you sure?"%}');"
                title='{% trans "Delete topic" %}'>D</a>
        </div>
    </caption>
    {% endif %}
    
    <thead>
        <tr>
            <th class="col1">{{reply.username}} - {{reply.created_time|date}}</th>
            <th class="col2">{{reply.title}}</th>
        </tr>
    </thead>

    {% with reply.author.frm_profile as frm_profile %}
    <tbody>
        <tr>
            <td class="col1">                
            {% if frm_profile %}                
                {% include "forum/user/includes/profile_column.html" %}
            {% else %}
                <span><i>{% trans "no forum profile avaiable"%}</i></span>
            {% endif %}
            </td>
            <td class="col2">
				
				{% ifequal request.user reply.author %}				
				{% if forum.allow_reply_edit or forum.allow_reply_del %}
					{% if forum.allow_reply_edit %}
					<a href="{{reply.link.edit}}" title='{% trans "edit" %}'>
						<img src="{{MEDIA_URL}}images/forum/edit.png" alt='{% trans "edit" %}'></img>
					</a>
					{% endif %}
					
					{% if forum.allow_reply_del %}
					<a class="yousure" href="{{reply.link.remove}}" title='{% trans "remove" %}'>
						<img src="{{MEDIA_URL}}images/forum/delete.png" alt='{% trans "delete" %}'></img>
					</a> 
					{% endif %}
					<hr />
				{% endif %}
				{% endifequal %}
				
				<div class="content_text">
                {{reply.text|safe}}
				</div>
				
				{% if frm_profile.signature %}
				<span class="sep">__________________</span>
				<div class="signature">
					{{frm_profile.signature|default:""|safe}}
				</div>
				{% endif %}
            </td>
        </tr>
    </tbody>
	<tfoot>
		<tr>
		<td class="col1"></td>
		<td></td>			
		</tr>
	</tfoot>

    {% endwith %}
</table>